import request from '@/utils/request'

// 查询首页方案列表
export function listHomepageSolution(query) {
  return request({
    url: '/solution/homepageSolution/list',
    method: 'get',
    params: query
  })
}

// 查询首页方案详细
export function getHomepageSolution(solutionId) {
  return request({
    url: '/solution/homepageSolution/' + solutionId,
    method: 'get'
  })
}

// 新增首页方案
export function addHomepageSolution(data) {
  return request({
    url: '/solution/homepageSolution',
    method: 'post',
    data: data
  })
}

// 修改首页方案
export function updateHomepageSolution(data) {
  return request({
    url: '/solution/homepageSolution',
    method: 'put',
    data: data
  })
}

// 删除首页方案
export function delHomepageSolution(solutionId) {
  return request({
    url: '/solution/homepageSolution/' + solutionId,
    method: 'delete'
  })
}
